/* 导航栏样式 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-btn {
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #764ba2;
    transform: translateX(-2px);
}

.navbar-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

/* 主内容区样式 */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.main-content {
    max-width: 1000px;
    margin: 80px auto 30px;
    padding: 0 20px;
}

/* 新闻详情样式 */
.news-detail {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.news-title {
    font-size: 32px;
    margin-bottom: 20px;
    color: #2d3748;
    font-weight: 700;
    line-height: 1.4;
}

.news-meta {
    color: #718096;
    margin-bottom: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.date-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-container i {
    color: #718096;
}

.like-container {
    display: flex;
    align-items: center;
}

.like-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    transition: all 0.3s ease;
    border-radius: 20px;
    background-color: white;
    font-size: 16px;
}

.like-btn:hover {
    background-color: #f7fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.like-btn.liked {
    color: #e53e3e;
    border-color: #fed7d7;
    background-color: #fff5f5;
}

.like-btn.liked .like-icon {
    color: #e53e3e;
}

.like-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.like-btn:hover .like-icon {
    transform: scale(1.1);
}

.like-count {
    font-size: 16px;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

.news-content {
    line-height: 1.8;
    color: #4a5568;
    font-size: 16px;
}

.news-images {
    margin: 25px 0;
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.news-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.news-image:hover {
    transform: scale(1.02);
}

/* 评论区样式 */
.comments-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-section h2 {
    color: #2d3748;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #4a5568, #2d3748);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 15px;
    resize: vertical;
    min-height: 100px;
    font-size: 15px;
    color: #4a5568;
    transition: all 0.3s ease;
}

.comment-form textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.comment-form button {
    width: 120px;
    padding: 12px 0;
    background: white;
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comment-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    background: #f8fafc;
    color: #764ba2;
}

.comments-list {
    display: grid;
    gap: 20px;
}

.comment-item {
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease;
}

.comment-item:hover {
    background-color: #f8fafc;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #718096;
    font-size: 14px;
}

.comment-content {
    color: #4a5568;
    line-height: 1.6;
    font-size: 15px;
}

/* 未登录提示样式 */
.comment-form p {
    text-align: center;
    color: #4a5568;
    font-size: 15px;
}

.comment-form a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.comment-form a:hover {
    color: #764ba2;
}

/* 图片预览样式 */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* 附件列表样式 */
.file-section {
    margin-top: 30px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.file-section-title {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-section-title i {
    color: #718096;
}

.file-list {
    display: grid;
    gap: 12px;
}

.file-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-item:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-icon i {
    font-size: 20px;
    color: #64748b;
}

.file-info {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-name {
    color: #2d3748;
    font-weight: 500;
}

.download-btn {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #eff6ff;
    color: #2563eb;
}

.download-btn i {
    font-size: 14px;
} 